<?php
    // +----------------------------------------------------------------------
    // | 海豚PHP框架 [ DolphinPHP ]
    // +----------------------------------------------------------------------
    // | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
    // +----------------------------------------------------------------------
    // | 官方网站: http://dolphinphp.com
    // +----------------------------------------------------------------------
    // | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
    // +----------------------------------------------------------------------

    /**
     * 模块信息
     */
    return [
        // 模块名[必填]
        'name' => 'payment',
        // 模块标题[必填]
        'title' => '支付网关',
        // 模块唯一标识[必填]，格式：模块名.开发者标识.module
        'identifier' => 'payment.dragonlhp.module',
        // 模块图标[选填]
        'icon' => 'fa fa-fw fa-newspaper-o',
        // 模块描述[选填]
        'description' => '管理所有支付',
        // 开发者[必填]
        'author' => 'TimeWork',
        // 开发者网址[选填]
        'author_url' => '',
        // 版本[必填],格式采用三段式：主版本号.次版本号.修订版本号
        'version' => '1.0.0',
        // 模块依赖[可选]，格式[[模块名, 模块唯一标识, 依赖版本, 对比方式]]
        'need_module' => [
            ['admin', 'admin.dolphinphp.module', '1.0.0']
        ],
        // 插件依赖[可选]，格式[[插件名, 插件唯一标识, 依赖版本, 对比方式]]
        'need_plugin' => [],
        // 数据表[有数据库表时必填]
        'tables' => [],
        // 原始数据库表前缀
        // 用于在导入模块sql时，将原有的表前缀转换成系统的表前缀
        // 一般模块自带sql文件时才需要配置
        'database_prefix' => 'dp_',

        // 模块参数配置
        'config' => [
            [
                'group',
                [
                    '参数' => [
                        ['text', 'pro_price', '充值手续费', '', 0],
                        ['text', 'withdraw_price', '提现手续费', '', 0.02],
                        ['checkbox', 'pay_type', '支付方式', '', [1 => '支付宝', 2 => '微信'],],
                    ],
                    '支付秘钥' => [
                        ['text', 'wxpay_app_id', '微信应用ID', '', 'wxcdbc47a40cb3327b'],
                        ['text', 'wxpay_app_secret', '微信应用密钥', ''],
                        ['text', 'wxpay_mch_id', '微信商户ID', '', '1502434241'],
                        ['text', 'wxapy_mch_key', '微信商户密钥', '', 'UuhysRDQ6aOMqv9JsIfXnSgNUU5GeMX8'],
                        ['textarea', 'wxapy_public_key', '微信公钥', ''],
                        ['textarea', 'wxapy_private_key', '微信私钥', ''],

                        ['text', 'alipay_app_id', '支付宝应用ID', '', '2018041002530215'],
                        ['textarea', 'alipay_public_key', '支付宝公钥', '', 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhzAqAV9JgBMr1iKq8DGlYRGk67R9nK01bLgOnMNT9VXcondEvPqVnAhCqI+uydRoGQvk55dE74PDv7xP2tg9WM45xpbU/Jh7skmi36VCV5U2fTl6aWR5y1LI91aGDcRTtlKs1AKdePsC02Ke9gkfpNUfWbpeCUEhy4FNwKJ1byU7H+F3haQr2/Sl8mWt8/22RY2aiE6/OvONtdtInLLRM+NnHPNFGLQ0kAjcEDGWO8qarlTVNFdga06rXQdns7tkIeu2ZV5naIWaBK9B1yHxPuKqNkjfdgWHBehdHFQ6vEnW6T7efmjNHjT8b7tGnZLlcXdJh7R8zGjfO344sMVHBwIDAQAB'],
                        ['textarea', 'app_private_key', '应用私钥', '', 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCDBHgUHDd01TxrQCjIvqwrp9fY9zA60l1Ao8hCndvtgVVi21cdYRLQHRL+gmvdbSHKsV1hg55vIoCor/bREQEPNfOrDnvx58TjhJePbC19NBq6P5Zritwc+ml32IXNEuC3zt/zjmPxv8v360Xn+kjZ1b9CEzNhci4ET911liff6pie9BK0NcPiNVbf5nLCsAm4FXfBKExjSshnNc613imNbpTRZ3gHISygAE62Hri6QVLbNpMZh2TqouV8MePPdUMhkORLa9jMeUZdLYYWiRWVTHAqNpAZNXdOEsgKV34cIjm+mVn1+O5hX03wrudgH4HQxxkTWyTxGVZjcimONDhZAgMBAAECggEACP5+i8rgF7onuqkd46ILSbfs/m0Bt5gHZM+ZiNEzbtuJFA9ArLikRPsp+aTUaM/8GOESKwaREsoIkQv7YqDLN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vGN+gsi72fY8hmrw5ihdwBnWFtL3HwnRKX1gWzZ1WrlMwJ1xlurYa6RXbQ='],
                    ],
                ],
            ],
        ],

        // 行为配置
        'action' => [],

        // 授权配置
        'access' => [
            'group' => [
                "tab_title" => '支付网关',
                "table_name" => "payment_group",
                "primary_key" => "id",
                "parent_id" => "pid",
                "node_name" => "name"
            ],
        ],
    ];
